home *** CD-ROM | disk | FTP | other *** search
/ The Essential Home & Business Collection / The Essential Home & Business Collection.iso / 27 / 3 / 5 / HP22D5.ZIP / EXTERN / IO / CREATE.ASM < prev    next >
Assembly Source File  |  1991-04-16  |  497b  |  38 lines

  1. DOSSEG
  2. .MODEL        LARGE
  3.  
  4. .DATA
  5.  
  6. .CODE
  7.  
  8.  
  9. ; ---------------------------------------------------------------------------
  10. ; int create(FileName);
  11. ; ---------------------------------------------------------------------------
  12.         public        _create
  13. _create        proc        far
  14.         push        bp
  15.         mov        bp,sp
  16.         push        ds
  17.  
  18.         mov        ah,03ch
  19.         xor        cx,cx
  20.         lds        dx,[bp+6]
  21.         int        21h
  22.  
  23.         jnc        end_create
  24.  
  25.         mov        ax,-1        ;error return
  26. end_create:
  27.         pop        ds
  28.         pop        bp
  29.         retf
  30. _create        endp
  31.  
  32.         END
  33.  
  34.  
  35.  
  36.  
  37.  
  38.